]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
background: Remove the system noise content when not in use
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 3 Dec 2013 22:05:06 +0000 (17:05 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 4 Dec 2013 00:13:12 +0000 (19:13 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=719803

js/ui/background.js

index 5f11e577754f49115c283696ceddc952ff095734..af69f9dcdb30c0b1777df7f0ce7629cd5d3ba675 100644 (file)
@@ -634,7 +634,13 @@ const SystemBackground = new Lang.Class({
                                           this.emit('loaded');
                                       })
                                     });
-    }
+
+        this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
+    },
+
+    _onDestroy: function() {
+        this._cache.removeImageContent(this.actor.content);
+    },
 });
 Signals.addSignalMethods(SystemBackground.prototype);